﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ListGovernment.ascx.cs"
    Inherits="ServicesDirectory.UserControl.ListGovernment" %>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
        <div class="bgManager">
            <div class="TitleManarer">
                Government Office Region List
            </div>
            <div class="sortList">
                <span>
                    <asp:LinkButton runat="server" ID="All" Text="All"></asp:LinkButton>
                </span>| <span>
                    <asp:LinkButton runat="server" ID="lbt09" Text="0-9"></asp:LinkButton>
                </span>| <span>
                    <asp:LinkButton runat="server" ID="lbtA" Text="A B C D E"></asp:LinkButton>
                </span>| <span>
                    <asp:LinkButton runat="server" ID="lbtF" Text="F G H I J"></asp:LinkButton>
                </span>| <span>
                    <asp:LinkButton runat="server" ID="lbtK" Text="K L M N"></asp:LinkButton>
                </span>| <span>
                    <asp:LinkButton runat="server" ID="lbtO" Text="O P Q R"></asp:LinkButton>
                </span>| <span>
                    <asp:LinkButton runat="server" ID="lbtS" Text="S T U V"></asp:LinkButton>
                </span>| <span>
                    <asp:LinkButton runat="server" ID="lbtW" Text="W X Y Z"></asp:LinkButton>
                </span>
            </div>
            <div style="width: 28%; height: 25px; float: right">
                <asp:CheckBox runat="server" ID="chkInactive" Text="Include In-Active" AutoPostBack="true" />
            </div>
            <div class="spaceManager">
            </div>
            <div class="contentGrid">
                <div class="hearderGrid">
                    <div class="governmentHeaderCol1">
                        <asp:LinkButton runat="server" ID="lbtGovName" Text="Govt Office Region Name"></asp:LinkButton>
                    </div>
                    <div class="governmentHeaderCol2">
                        Description</div>
                    <div class="governmentHeaderCol3">
                        County</div>
                    <div class="governmentHeaderCol4">
                        Is Active?</div>
                </div>
                <asp:Repeater ID="Repeater1" runat="server" 
                    OnItemCommand="Repeater1_ItemCommand" onitemdatabound="Repeater1_ItemDataBound">
                    <ItemTemplate>
                        <div class="rowGrid">
                            <div class="governmentContentCol1">
                                <asp:LinkButton runat="server" ID="lbtGovName" CommandName="GovClick" Text='<%#Eval("GovOfficeRegionName") %>'
                                    CommandArgument='<%#Eval("GovOfficeRegionId") %>'></asp:LinkButton></div>
                            <div class="governmentContentCol2">
                                <%#Eval("SubDescription") %></div>
                            <div class="governmentContentCol3">
                            </div>
                            <div class="governmentContentCol4">
                                <asp:Label runat="server" ID="lblIsactive" Text=' <%#Eval("IsActive") %>'></asp:Label></div>
                        </div>
                    </ItemTemplate>
                    <AlternatingItemTemplate>
                        <div class="alterRowGrid">
                            <div class="governmentContentCol1">
                                <asp:LinkButton runat="server" ID="lbtGovName" CommandName="GovClick" Text='<%#Eval("GovOfficeRegionName") %>'
                                    CommandArgument='<%#Eval("GovOfficeRegionId") %>'></asp:LinkButton></div>
                            <div class="governmentContentCol2">
                                <%#Eval("SubDescription") %></div>
                            <div class="governmentContentCol3">
                            </div>
                            <div class="governmentContentCol4">
                                <asp:Label runat="server" ID="lblIsactive" Text=' <%#Eval("IsActive") %>'></asp:Label></div>
                        </div>
                    </AlternatingItemTemplate>
                </asp:Repeater>
                <div class="PagingList">
                    <span>
                        <asp:Button runat="server" CssClass="backAllList" ID="cmdFisrt" OnClick="CmdFisrt_Click1" />
                    </span><span>
                        <asp:Button runat="server" CssClass="backList" ID="cmdBack" OnClick="CmdBack_Click1" /></span>
                    <span style="padding-left: 5px;">Page</span> <span style="padding-left: 5px;">
                        <asp:TextBox Text="1" runat="server" Width="20px" ID="txtPageNumber"></asp:TextBox></span>
                    <span>of</span> <span>
                        <asp:Label runat="server" Text="1" ID="lblTotalPage"></asp:Label></span> <span>
                            <asp:Button runat="server" CssClass="nextAll" ID="cmdNext" OnClick="CmdNext_Click1" />
                        </span><span>
                            <asp:Button runat="server" CssClass="nextList" ID="cmdLast" OnClick="CmdLast_Click1" />
                        </span>
                </div>
            </div>
        </div>
    </ContentTemplate>
</asp:UpdatePanel>
